# Makefile for Xconq library.
# Copyright (C) 1994, 1995 Stanley T. Shebs.

# Xconq is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.

srcdir = .

SHELL = /bin/sh

# Host and target-dependent makefile fragments come in here.
####
# End of host and target-dependent makefile fragments.

IMFS =	$(srcdir)/aircraft.imf \
	$(srcdir)/arms.imf \
	$(srcdir)/colors.imf \
	$(srcdir)/emblems.imf \
	$(srcdir)/fantasy.imf \
	$(srcdir)/flags.imf \
	$(srcdir)/insects.imf \
	$(srcdir)/milsym.imf \
	$(srcdir)/misc.imf \
	$(srcdir)/sf.imf \
	$(srcdir)/ships.imf \
	$(srcdir)/standard.imf \
	$(srcdir)/tanks.imf \
	$(srcdir)/terrain.imf

all:

imf.dir:	$(IMFS)
	echo "ImageFamilyName FileName" >imf.tmp
	sh $(srcdir)/crunch-imf $(IMFS) | sed -e s,$(srcdir)/,, >>imf.tmp
	echo ". ." >>imf.tmp
	$(srcdir)/../move-if-change imf.tmp imf.dir

install: all install-only

install-only:

clean:

distclean: clean
	rm -f Makefile config.status

extraclean: distclean
	rm -f *~* .*~*

realclean: distclean

Makefile: Makefile.in $(host_makefile_frag) $(target_makefile_frag)
	$(SHELL) config.status
